<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="/WEB-INF/tlds/spring.tld" prefix="spring" %>
    <%@ taglib uri="/WEB-INF/tlds/spring-form.tld" prefix="spring-form" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<script type="text/javascript">
function register()
{
	  alert("submit");
	  document.getElementById('rgform').submit();
}

</script>
</head>
<body>
<spring-form:form id="rgform" action="apphome.disp" commandName="registrationCommandObj" method="post">
<label>UserName</label>&nbsp;&nbsp;&nbsp;<spring-form:input path="userName"/>
<br/><br/>
<label>Password</label>&nbsp;&nbsp;&nbsp;<spring-form:password path="password"  />
<input type="button" value="Register" onclick="register();"/>
</spring-form:form>
</body>
</html>